Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix#3336/allow using composables outside setup context #3355

Conversation

m0ksem
Copy link
Collaborator

@m0ksem m0ksem commented Apr 20, 2023

closes #3336

This PR allows composables that using useGlobalConfig to be able to be executed ouside setup context. For example

const toast = useToast()

axios.interceptor((err) => {
  if (err) {
    toast .init('Error!')
  }
})

@m0ksem m0ksem self-assigned this Apr 20, 2023
@m0ksem m0ksem merged commit 3b37d87 into epicmaxco:develop Apr 25, 2023
asvae pushed a commit that referenced this pull request Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Config not work outside a vue file
2 participants